package com.sgb.kjwl.model.entity.pick;


import com.swgk.core.util.DateUtils;

public class TenderAllListEntity {

    // 业务类型：1.招标； 2.竞价
    private Integer businessType;
    // 标id
    private String id;
    // 企业编号", required = true)
    private String comNo;
    // 企业名称", required = true)
    private String comName;
    // 项目名称
    private String projectName;
    // 标名称
    private String name;
    // 新标签：招标公告、招标预告、直接竞价
    private String label;
    // 类型
    private Integer type;
    // 类型翻译，包括招标和竞价
    private String typeName;
    // 状态
    private Integer state;
    // 状态翻译，包括招标和竞价
    private String stateName;
    // 招标轮次
    private Integer rotation;
    // 概算金额
    private String money;
    // 详细地址", required = true)
    private String address;
    // 省市区名称
    private String region;
    // 报名开始时间
    private String applyStartTime;
    // 报名结束时间
    private String applyEndTime;
    // 投标开始时间
    private String startTime;
    // 投标结束时间
    private String endTime;
    // 竞标时间  竞价结束：定标时间
    private String bidTime;
    // 报名方式：1、资格预审；2、资格后审；3、报价即报名
    private String verticalTypeName;
    // 报名方式：1、资格预审；2、资格后审；3、报价即报名
    private Integer verticalTypeValue;
    // 创建时间
    private String created;    // 竞价中：发布时间
    //物资清单表头--app
    private String[] goodsHeaders;
    //全部物资清单--app
    private String[][] goodsLists;
    // 报价是否展示 0、展示；1、不展示；
    private Integer isDisplay;
    //竞价无清单  最低报价
    private String minMoney;
    // 定标时间
    private String updated;

    // 报名开始时间     时间戳
    private String applyStartTimeStr;
    // 报名结束时间
    private String applyEndTimeStr;
    // 投标开始时间
    private String startTimeStr;
    // 投标结束时间
    private String endTimeStr;
    // 定标时间   竞价结束：定标时间
    private String updatedStr;
    // 竞标时间
    private String bidTimeStr;
    // 创建时间
    private String createdStr;
    private String moduleType;
    private String distance;
    private String longitude;
    private String latitude;
    private String customerServiceContactsId;
    private int userFocusFlag;
    private String deadlineTime;

    public String getDeadlineTime(int type) {
        if (deadlineTime == null)
            return "";
        if (!"".equals(deadlineTime))
            if (type == 1) {   //天
                return DateUtils.stampToDay(deadlineTime) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(deadlineTime) + "";
            }
        return deadlineTime;
    }

    public void setDeadlineTime(String deadlineTime) {
        this.deadlineTime = deadlineTime;
    }

    public int getUserFocusFlag() {
        return userFocusFlag;
    }

    public void setUserFocusFlag(int userFocusFlag) {
        this.userFocusFlag = userFocusFlag;
    }

    public String getCustomerServiceContactsId() {
        return customerServiceContactsId;
    }

    public void setCustomerServiceContactsId(String customerServiceContactsId) {
        this.customerServiceContactsId = customerServiceContactsId;
    }
    private String addrDetail;
    private String applyCompanyName;

    public String getAddrDetail() {
        return addrDetail;
    }

    public void setAddrDetail(String addrDetail) {
        this.addrDetail = addrDetail;
    }

    public String getApplyCompanyName() {
        return applyCompanyName;
    }

    public void setApplyCompanyName(String applyCompanyName) {
        this.applyCompanyName = applyCompanyName;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }

    public String getApplyStartTimeStr(int type) {
        if (applyStartTimeStr == null)
            return "";
        if (!"".equals(applyStartTimeStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(applyStartTimeStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(applyStartTimeStr) + "";
            }
        return applyStartTimeStr;
    }

    public void setApplyStartTimeStr(String applyStartTimeStr) {
        this.applyStartTimeStr = applyStartTimeStr;
    }

    public String getApplyEndTimeStr(int type) {
        if (applyEndTimeStr == null)
            return "";
        if (!"".equals(applyEndTimeStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(applyEndTimeStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(applyEndTimeStr) + "";
            }
        return applyEndTimeStr;
    }

    public void setApplyEndTimeStr(String applyEndTimeStr) {
        this.applyEndTimeStr = applyEndTimeStr;
    }

    public String getStartTimeStr(int type) {
        if (startTimeStr == null)
            return "";
        if (!"".equals(startTimeStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(startTimeStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(startTimeStr) + "";
            }
        return startTimeStr;
    }

    public void setStartTimeStr(String startTimeStr) {
        this.startTimeStr = startTimeStr;
    }

    public String getEndTimeStr(int type) {
        if (endTimeStr == null)
            return "";
        if (!"".equals(endTimeStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(endTimeStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(endTimeStr) + "";
            }
        return endTimeStr;
    }

    public void setEndTimeStr(String endTimeStr) {
        this.endTimeStr = endTimeStr;
    }

    public String getUpdatedStr(int type) {
        if (updatedStr == null)
            return "";
        if (!"".equals(updatedStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(updatedStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(updatedStr) + "";
            }
        return updatedStr;
    }

    public void setUpdatedStr(String updatedStr) {
        this.updatedStr = updatedStr;
    }


    public String getBidTimeStr(int type) {
        if (bidTimeStr == null)
            return "";
        if (!"".equals(bidTimeStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(bidTimeStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(bidTimeStr) + "";
            }
        return bidTimeStr;
    }

    public void setBidTimeStr(String bidTimeStr) {
        this.bidTimeStr = bidTimeStr;
    }

    public String getCreatedStr(int type) {
        if (createdStr == null)
            return "";
        if (!"".equals(createdStr))
            if (type == 1) {   //天
                return DateUtils.stampToDay(createdStr) + "";
            } else if (type == 2) {  //分钟
                return DateUtils.stampToMinute(createdStr) + "";
            }
        return createdStr;
    }

    public void setCreatedStr(String createdStr) {
        this.createdStr = createdStr;
    }


    public String getUpdated() {
        return updated;
    }


    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public String getMinMoney() {
        return minMoney;
    }

    public void setMinMoney(String minMoney) {
        this.minMoney = minMoney;
    }

    public Integer getBusinessType() {
        return businessType;
    }

    public void setBusinessType(Integer businessType) {
        this.businessType = businessType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getComNo() {
        return comNo;
    }

    public void setComNo(String comNo) {
        this.comNo = comNo;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public Integer getRotation() {
        return rotation;
    }

    public void setRotation(Integer rotation) {
        this.rotation = rotation;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getApplyStartTime() {
        return applyStartTime;
    }

    public void setApplyStartTime(String applyStartTime) {
        this.applyStartTime = applyStartTime;
    }

    public String getApplyEndTime() {
        return applyEndTime;
    }

    public void setApplyEndTime(String applyEndTime) {
        this.applyEndTime = applyEndTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getBidTime() {
        return bidTime;
    }

    public void setBidTime(String bidTime) {
        this.bidTime = bidTime;
    }

    public String getVerticalTypeName() {
        return verticalTypeName;
    }

    public void setVerticalTypeName(String verticalTypeName) {
        this.verticalTypeName = verticalTypeName;
    }

    public Integer getVerticalTypeValue() {
        return verticalTypeValue;
    }

    public void setVerticalTypeValue(Integer verticalTypeValue) {
        this.verticalTypeValue = verticalTypeValue;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String[] getGoodsHeaders() {
        return goodsHeaders;
    }

    public void setGoodsHeaders(String[] goodsHeaders) {
        this.goodsHeaders = goodsHeaders;
    }

    public String[][] getGoodsLists() {
        return goodsLists;
    }

    public void setGoodsLists(String[][] goodsLists) {
        this.goodsLists = goodsLists;
    }

    public Integer getIsDisplay() {
        return isDisplay;
    }

    public void setIsDisplay(Integer isDisplay) {
        this.isDisplay = isDisplay;
    }

}
